function saveVersion(){
	var a1 = $("#txtVersionName").val();
	var version  = $("#txtVersionNum").val();
	var versionDesc = $("#txtVersionDesc").val();
	var his = new Object();
	his.A1 = a1;
	his.version = version;
	his.versionDesc = versionDesc;
	his.addPerson = $.cookie("youleche.u");
	if($.cookie("youleche.u") == "" || $.cookie("youleche.u") == null){
		window.location.href = ctx + "/noresponse.jsp";
		return;
	}
	var jsonData = JSON.stringify(his);
	
	$.ajax({
		type: "post",
		dataType: "text",
		contentType: "application/json",
		data: jsonData,
		url: ctx + '/his.do?action=0',
		success: function(v){
			if(v == "1"){
				layer.alert("添加成功",9,"版本历程提示", function(){
					window.location.href = "historyInfo.jsp";
				});
				$(".xubox_close xulayer_png32 xubox_close0").hide();
			}
		}
	});
}